package Requests;

import java.io.PrintWriter;

import default_package.InputParser;

public class POSTRequest extends HTTPRequest {

	public POSTRequest(String[] input, PrintWriter pw, String host) {
		super(input, pw, host);
	}

	@Override
	public void execute() {
		String commandLine = getCommandToServer();
		//getPrintWriter().print(temp);
		//getPrintWriter().flush();
		// Sending headers to server
		commandLine = commandLine.concat(getTextBlock());
		commandLine = commandLine.concat("\r\n");
		commandLine = commandLine.concat(getTextBlock());
		commandLine = commandLine.concat("\r\n");
		getPrintWriter().print(commandLine);
		getPrintWriter().flush();
	}
}


